package com.example.planschedulingsystem.service;

import com.example.planschedulingsystem.entity.User;
import com.example.planschedulingsystem.repository.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserManagerService {
    @Autowired
    private UserRepository userRepository;

    public User getUser(String pwd, String username) {
        return userRepository.findUserByPasswordAndAndUsername(pwd, username);
    }
}
